﻿@page
@model ListModel
@section Aside
    {
    @Html.Partial("_Aside")
}
<ol class="breadcrumb">
    <li><span class="glyphicon glyphicon-home"></span>  <a asp-page="/Member/Index">首页</a></li>
    <li class="active">内容管理</li>
</ol>
<div id="gdtoolbar">
    <a asp-page="Add" class="btn btn-success"><span class="glyphicon glyphicon-plus"></span> 添加</a>
    <a id="btn-del" data-ns-page="@Url.Content("~/Member/Content/Delete")" href="#" class="btn btn-danger"><span class="glyphicon glyphicon-remove"></span> 删除</a>
</div>

<table id="datagrid"></table>
@section css{
    <link href="~/lib/bootstrap-table/dist/bootstrap-table.min.css" rel="stylesheet" />
    <link href="~/lib/bootstrap3-dialog/dist/css/bootstrap-dialog.min.css" rel="stylesheet" />
}

@section scripts{
    @await Html.PartialAsync("_ValidationScriptsPartial")
    <script type="text/javascript">
        function queryParams(params){
            var tempParams = {
                categoryId:@Model.CategoryId,
                pageSize : params.limit,
                pageIndex : params.offset+1,
            }
            return tempParams;
        }
    </script>
    <script src="~/lib/bootstrap-table/dist/bootstrap-table.min.js"></script>
    <script src="~/lib/bootstrap3-dialog/dist/js/bootstrap-dialog.min.js"></script>
    <script src="~/Member/Default/Js/ContentList.js"></script>

}
@Html.AntiForgeryToken()